package com.elong.businesstravel.protocol.order;

import org.json.JSONException;
import org.json.JSONObject;

import android.content.Context;

import com.elong.businesstravel.include.Version;
import com.elong.businesstravel.protocol.ProtocolDef;
import com.elong.businesstravel.protocol.baserequest.BaseELongHttpRequest;
/**
 * 取消订单
 * @author lenovo
 *
 */
public class CancleOrderRequest extends BaseELongHttpRequest {
	
	// 'version' => array ('type' => 'float'),
	// 'debug' => array ('type' => 'string','mast' => 'N'),
	// 'orderid' => array ('type' => 'number'),
	// 'uid' => array ('type' => 'number'),
	// 'deviceid' => array ('type' => 'string','mast' => 'N'),
	// 'token' => array ('type' => 'string','mast' => 'N')

	public CancleOrderRequest(Context context, String orderid) {
		super(context);
		
		JSONObject jsonObject = new JSONObject();
		try {
			jsonObject.put("orderid", orderid);
		} catch (JSONException e) {
			e.printStackTrace();
		}
		setRequestActionParam(ProtocolDef.ACTION_Cancleorder, jsonObject);
	}

}
